package com.easy.common.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.Date;
import java.util.HashMap;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-19 19:52
 **/

public class Tools {
    private static final String KEY = "eazydemo.com";
    public static final long EXPIRE_TIME = 60 * 1000;//token的过期时间，60秒钟

    public static String object2Json(Object data) {
        return JSON.toJSONString(data);
    }

    public static JSONObject json2Array(String data) {
        return JSON.parseObject(data);
    }

    //根据用户的账号生成对应的uid

}
